#ifndef CONFIG_H
#define CONFIG_H




typedef void (*ini_handler)(void*,const char*,const char*,char*);

void trim(char *str);
char ** str_split(char *input,char *delim,int buf_size);
int string_has_suffix(const char *str, const char *suffix);
void str_neat(char *input);
void str_free(char **str);

char **load_dir(const char *path,const char *suffix);
void split_dir_file(char *dir,char *file,const char *filepath);

int ini_parse(void* user,const char *path,ini_handler handle,long *mtime);

#endif